﻿using MxWeiXinPF.API.Payment.Tenpay;
using MxWeiXinPF.Common;
using MxWeiXinPF.Web.UI;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MxWeiXinPF.Web.weixin.jiaoshuifei
{
    public partial class paymentdetail : WeiXinPage
    {

        public List<Model.BindRecord> list = null;
        public int wid = 0;
        public string consname = "";
        public string consno = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            consname = MyCommFun.QueryString("consname");
            consno = MyCommFun.QueryString("consno");
            wid = MyCommFun.RequestWid();
            string thisUrl = MyCommFun.getWebSite() + "/weixin/jiaoshuifei/paymentdetail.aspx?wid=" + wid + "&consname=" + consname + "&consno=" + consno;
            OAuth2BaseProc(wid, thisUrl);
        


            if (wid == 0 || openid == "")
            {
                Response.Redirect("/weixin/jiaoshuifei/index.aspx?wid=" + wid);
            }

             if (Request.Cookies["ownDetail" + wid] != null)
             {
                 list = JsonConvert.DeserializeObject<List<Model.BindRecord>>(Request.Cookies["ownDetail" + wid].Value);
             }
        }
    }
}